Skip to content

RTC: Remove post list lock icon and replace user-specific lock text when RTC is enabled#11234

Closed
maxschmeling wants to merge 12 commits intoWordPress:trunkfrom
maxschmeling:backport/rtc-remove-post-lock-icon
Closed

RTC: Remove post list lock icon and replace user-specific lock text when RTC is enabled#11234
maxschmeling wants to merge 12 commits intoWordPress:trunkfrom
maxschmeling:backport/rtc-remove-post-lock-icon

Conversation

@maxschmeling
Copy link

Backport WordPress/gutenberg#76322.

When RTC is enabled, the post list should not show an exclusive lock icon or user-specific lock text since multiple users can collaboratively edit the same post.

Trac ticket: https://core.trac.wordpress.org/ticket/64622

…dicator when RTC is enabled.

When real-time collaboration is enabled, the post list no longer shows exclusive
lock semantics (padlock icon, user avatar, "{user} is currently editing") since
multiple users can collaboratively edit the same post. Instead:

- Shows generic "Currently being edited" text without user-specific info.
- Uses `wp-collaborative-editing` CSS class instead of `wp-locked`, which
  preserves checkbox and row action visibility (no exclusive lock restrictions).
- Changes the "Edit" row action text to "Join" for locked posts.
- Heartbeat responses send generic text with a `collaborative` flag.
- Injects `_wpCollaborationEnabled` into `inline-edit-post` script so the
  heartbeat JS handler applies the correct class on dynamic lock updates.

When RTC is disabled, classic lock behavior is completely unchanged.

Backports WordPress/gutenberg#76322 to core.

Props pkevan.
See #75313.
@github-actions
Copy link

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@maxschmeling maxschmeling marked this pull request as ready for review March 19, 2026 04:17
@github-actions
Copy link

github-actions bot commented Mar 19, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props maxschmeling, czarate, mcsf, shekharnwagh.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@maxschmeling maxschmeling changed the title Backport: Remove post list lock icon and replace user-specific lock text with RTC enabled RTC: Remove post list lock icon and replace user-specific lock text with RTC enabled Mar 19, 2026
Co-authored-by: Chris Zarate <chris@zarate.org>
@shekharnwagh
Copy link

I tried testing it locally and I can still see the post lock modal.
Followed this instructions to run it locally -

npm install
npm run build:dev
npm run env:start
npm run env:install

@shekharnwagh
Copy link

I tried testing it locally and I can still see the post lock modal. Followed this instructions to run it locally -

npm install
npm run build:dev
npm run env:start
npm run env:install

Updating the branch fixed it. It was related to change in option name in #11289

@shekharnwagh
Copy link

Looks good to me, approved 🚢

Copy link
Contributor

@mcsf mcsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that my cursory review only considered i18n.

@maxschmeling
Copy link
Author

@mcsf do you mind giving the updates in fb00824 a look? I haven't added translators notes / context in Core before, so maybe not the right style or something. Let me know.

@mcsf
Copy link
Contributor

mcsf commented Mar 20, 2026

@mcsf do you mind giving the updates in fb00824 a look? I haven't added translators notes / context in Core before, so maybe not the right style or something. Let me know.

Thanks, @maxschmeling, I've commented on one thing, but everything else looks good

@maxschmeling maxschmeling changed the title RTC: Remove post list lock icon and replace user-specific lock text with RTC enabled RTC: Remove post list lock icon and replace user-specific lock text when RTC is enabled Mar 20, 2026
pento pushed a commit that referenced this pull request Mar 20, 2026
…specific lock text when RTC is enabled.

When RTC is enabled, the post list should not show an exclusive lock icon or user-specific lock text since multiple users can collaboratively edit the same post.

Merges a fix from Gutenberg: WordPress/gutenberg#76322.

Developed in: #11234.

See #64622.
Props maxschmeling, czarate, mcsf, shekharnwagh.



git-svn-id: https://develop.svn.wordpress.org/trunk@62074 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Mar 20, 2026
…specific lock text when RTC is enabled.

When RTC is enabled, the post list should not show an exclusive lock icon or user-specific lock text since multiple users can collaboratively edit the same post.

Merges a fix from Gutenberg: WordPress/gutenberg#76322.

Developed in: WordPress/wordpress-develop#11234.

See #64622.
Props maxschmeling, czarate, mcsf, shekharnwagh.


Built from https://develop.svn.wordpress.org/trunk@62074


git-svn-id: http://core.svn.wordpress.org/trunk@61356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
@ellatrix
Copy link
Member

This is committed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants